using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace DTO
{
	public class PhongDTO
	{

		//////////////////////////////////////////////////////////	                                                          

        public bool KiemTra()
        {
            if (this.TenPhong == "")
                return false;
            if (this.MaLoaiPhong == -1)
                return false;
            if (this.m_MaTinhTrang == -1)
                return false;
            if (this.GhiChu == "")
                return false;
            return true;
        }
        public PhongDTO()
        {             
		    this.m_MaPhong = -1;
		    this.m_TenPhong = "";
		    this.m_MaLoaiPhong = -1;
            this.m_GhiChu = "";
		    this.m_MaTinhTrang = -1;
        }
		//////////////////////////////////////////////////////////
	

		private int m_MaPhong;
		private string m_TenPhong;
		private int m_MaLoaiPhong;
		private string m_GhiChu;
		private int m_MaTinhTrang;


		public  int MaPhong
		{
			get { return this.m_MaPhong; }
			set { this.m_MaPhong = value; }
		}


		public  string TenPhong
		{
			get { return this.m_TenPhong; }
			set { this.m_TenPhong = value; }
		}


		public  int MaLoaiPhong
		{
			get { return this.m_MaLoaiPhong; }
			set { this.m_MaLoaiPhong = value; }
		}


		public  string GhiChu
		{
			get { return this.m_GhiChu; }
			set { this.m_GhiChu = value; }
		}


		public  int MaTinhTrang
		{
			get { return this.m_MaTinhTrang; }
			set { this.m_MaTinhTrang = value; }
		}

		public static readonly string DisplayMember ="TenPhong";

		public static readonly string ValueMember ="MaPhong";

	}

}